-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-12-14
-- description: 观察者模式-观察者
--
-- ----------------------------------------------------------

HexaObserver = HexaObserver or BaseClass(Observer)

function HexaObserver:__init(subject)
	self.subject = subject
	self.subject:Attach(self)
end

function HexaObserver:Update()
	print("Hex String: " .. self.subject:GetState())
end